function [sessName, ziDevNames] = findSessionZI()
%FINDSESSIONZI Summary of this function goes here
%   Detailed explanation goes here
    va = evalin('base', 'whos'); c = {va.class}; n = {va.name};
    idx = find(contains(c, 'MeasurementSession'));

    if length(idx) == 1
        sessName = n{idx};
        ziDevNames = evalin('base', [sessName, '.getDevice']);
    else
        warning('No session found. Please start a session using "startSession".');
        sessName = []; ziDevNames =[];
    end
end

